package com.bookcity.front.webfront.vo;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * post
 * {
 * "appid": "ttabc*****",
 * "secret": "d428***********",
 * "grant_type": "client_credential"
 * }
 * receive:
 * {
 * "err_no": 0,
 * "err_tips": "success",
 * "data": {
 * "access_token": "0801121***********",
 * "expires_in": 7200
 * }
 * }
 */
@Data
@ToString
public class TokenResult implements Serializable {
    private int err_no;
    private String err_tips;
    private Data data = new Data();

    @lombok.Data
    @ToString
    public static class Data implements Serializable {
        private String access_token;
        private int expires_in = 7200;
    }
}

